package com.wisdytech.linkdcs.equipLifeCycle.malfunction.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author dailibo
 * @since 2018-06-11
 */
@TableName("TT_EQ_MALFUNCTION_RECORD")
public class MalfunctionRecord extends Model<MalfunctionRecord> {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private String pkId;
    @TableField("EQUIP_CODE")
    private String equipCode;
    @TableField("FAILURE_STATUS")
    private String failureStatus;
    
    @TableField("FAILURE_RESULT")
    private String failureResult;
   
    
    @TableField("HAPPEN_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date happenDate;
    @TableField("REPORT_MAN")
    private String reportMan;
    @TableField("IF_STOP")
    private String ifStop;
    @TableField("FAILURE_LEVEL")
    private String failureLevel;
    @TableField("FAILURE_TITLE")
    private String failureTitle;
    @TableField("FAILURE_DESC")
    private String failureDesc;
    
    @TableField("DEL_FLAG")
    private String delFlag;
    @TableField("CREATE_USER")
    private String createUser;
    @TableField("CREATE_DATE")
    private Date createDate;
    @TableField("UPDATE_USER")
    private String updateUser;
    @TableField("UPDATE_DATE")
    private Date updateDate;
    @TableField("REMARK")
    private String remark;
    
    //附件地址
    @TableField(exist=false)
    private String fileName;
    //附件名称
    @TableField(exist=false)
    private String filePath;

    


	public String getFailureResult() {
		return failureResult;
	}

	public void setFailureResult(String failureResult) {
		this.failureResult = failureResult;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getEquipCode() {
        return equipCode;
    }

    public void setEquipCode(String equipCode) {
        this.equipCode = equipCode;
    }

    public String getFailureStatus() {
        return failureStatus;
    }

    public void setFailureStatus(String failureStatus) {
        this.failureStatus = failureStatus;
    }

    public Date getHappenDate() {
        return happenDate;
    }

    public void setHappenDate(Date happenDate) {
        this.happenDate = happenDate;
    }

    public String getReportMan() {
        return reportMan;
    }

    public void setReportMan(String reportMan) {
        this.reportMan = reportMan;
    }

    public String getIfStop() {
        return ifStop;
    }

    public void setIfStop(String ifStop) {
        this.ifStop = ifStop;
    }

    public String getFailureLevel() {
        return failureLevel;
    }

    public void setFailureLevel(String failureLevel) {
        this.failureLevel = failureLevel;
    }

    public String getFailureTitle() {
        return failureTitle;
    }

    public void setFailureTitle(String failureTitle) {
        this.failureTitle = failureTitle;
    }

    public String getFailureDesc() {
        return failureDesc;
    }

    public void setFailureDesc(String failureDesc) {
        this.failureDesc = failureDesc;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }
    
    

    @Override
    public String toString() {
        return "MalfunctionRecord{" +
        ", pkId=" + pkId +
        ", equipCode=" + equipCode +
        ", failureStatus=" + failureStatus +
        ", happenDate=" + happenDate +
        ", reportMan=" + reportMan +
        ", ifStop=" + ifStop +
        ", failureLevel=" + failureLevel +
        ", failureTitle=" + failureTitle +
        ", failureDesc=" + failureDesc +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", createDate=" + createDate +
        ", updateUser=" + updateUser +
        ", updateDate=" + updateDate +
        ", remark=" + remark +
        "}";
    }
}
